<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"	xmlns:fb="https://www.facebook.com/2008/fbml">
    <head>
	<BASE href="<?= HOME; ?>" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="robots" content="noindex, nofollow">
     <meta name="keywords" content="<?php if($data[keyword]=="") { echo KEYWORD;}else{echo $data[keyword];} ?>" />	
	<meta name="description" content="<?php if($data[mota]=="") { echo DES;}else{echo $data[mota];} ?>" /> 
	<title><?php if($data[title]=="") { echo HEAD;}else{echo $data[title];} ?></title>
   	<link rel="icon"  type="image/png" href="/favicon.png" />
    <link href="public/exts/xcrud/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Roboto:100,300,300italic&subset=vietnamese' rel='stylesheet' type='text/css'>
	<link rel="stylesheet" href="<?= HOME ?>public/exts/css/select22.css" type="text/css" />	
    <link href="<?= HOME ?>public/font-awesome/css/font-awesome.css"	rel="stylesheet" type="text/css" />
    <link href="<?= HOME ?>public/exts/css/admin-style.css"	rel="stylesheet" type="text/css" />
	<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
     <script type="text/javascript">var baseUrl = '<?= HOME; ?>'</script>
   
	<style>
.note{color:#64bb5d; font-weight:bold}
.box{margin-bottom: 10px;
padding:10px;
background-color: #fff;
border: 1px solid transparent;
border-radius: 4px;
-webkit-box-shadow: 0 1px 4px rgba(0,0,0,.05);
box-shadow: 0 1px 4px rgba(0,0,0,.05);}
a:hover{ text-decoration:none; color:#F60}
.navbar {
border-radius: 0px;
}
</style>
</head>
	<div id="fb-root"></div>
	<script type="text/javascript">
  // prevent jQuery from appending cache busting string to the end of the FeatureLoader URL 
  var cache = jQuery.ajaxSettings.cache; 
  jQuery.ajaxSettings.cache = true;
  // Load FeatureLoader asynchronously. Once loaded, we execute Facebook init 
  jQuery.getScript('http://connect.facebook.net/vi_VN/all.js', function() {      
    FB.init({appId: '<?php echo FB_ID;?>', status: true, cookie: true, xfbml: true});    
  });
  // just Restore jQuery caching setting
  jQuery.ajaxSettings.cache = cache;
</script>
<body style="background:#666">
<!-- start: Header -->
		<nav class="navbar navbar-default " role="navigation">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header ">
				<button type="button" class="navbar-toggle navbar-left"
					data-toggle="collapse" data-target=".navbar-ex1-collapse">
				<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span	class="icon-bar"></span>
				</button>
				<a class="navbar-brand"  href="<?php echo HOME;?>"><i class="fa fa-home"></i> TCT</a>
				
			</div>
			<!-- end .navbar-header -->
			<!-- Collect the nav links, forms, and other content for toggling -->
			<div class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
                                   <?php if($_SESSION['user']['level']==1){?>
                   <li class="dropdown"><a href="#" class="dropdown-toggle"	data-toggle="dropdown">Admin
							<b class="caret"></b> </a>
						<ul class="dropdown-menu">
								
                          	<li><a	href="<?php echo HOME ?>index.php?module=manage&act=admin&type=manga">Manga</a>	</li>
							<li><a	href="<?php echo HOME ?>index.php?module=manage&act=admin&type=fansub">Fansub</a>	</li>
                            <li><a	href="<?php echo HOME ?>index.php?module=manage&act=admin&type=theloai">Thể Loại Manga</a>	</li>
                             <li><a	href="<?php echo HOME ?>index.php?module=manage&act=admin&type=user">User</a>	</li>
                             <li role="presentation" class="divider"></li>
                             <li><a	href="<?php echo HOME ?>index.php?module=manage&act=blog&opt=category">Blog Category</a>	</li>
                              <li><a	href="<?php echo HOME ?>index.php?module=manage&act=admin&type=video">Video</a>	</li>
                               <li><a	href="<?php echo HOME ?>index.php?module=manage&act=admin&type=blog">Blog</a>	</li>
                                  <li role="presentation" class="divider"></li>
                               	<li><a	href="<?php echo HOME ?>index.php?module=manage&act=user&type=user">Users</a>	</li>
							<li><a	href="<?php echo HOME ?>index.php?module=manage&act=user&type=group">Group</a>	</li>
						</ul>
					</li>
                    <?php }?>
                    <li class="dropdown"><a href="#" class="dropdown-toggle"	data-toggle="dropdown">Manga
							<b class="caret"></b> </a>
						<ul class="dropdown-menu">
                          	<li><a	href="<?php echo HOME ?>index.php?module=manage&act=manga&opt=common&type=manga">Quản Lý Manga</a>	</li>
                            <li><a	href="<?php echo HOME ?>index.php?module=manage&act=manga&opt=upload">Upload Chapter</a>	</li>
                            <?php if($_SESSION['user']['level']==1){?>
                             <li><a	href="<?php echo HOME ?>index.php?module=manage&act=manga&opt=upload_fix">Upload Fix Chapter</a>	</li>
							<li><a	href="<?php echo HOME ?>index.php?module=manage&act=manga&opt=common&type=chapter">Quản Lý Chapter</a>	</li>
                            <li><a  href="<?php echo HOME;?>index.php?module=manage&act=manga&opt=common&type=theloai"> Thể Loại</a></li>
                            <li><a href="<?php echo HOME;?>index.php?module=manage&act=manga&opt=common&type=theloai_tag"> Thể Loại - Tags</a></li>
							<li><a  href="<?php echo HOME;?>index.php?module=manage&act=manga&opt=common&type=theloai_fk">Thể Loại - Manga</a></li>
                            <li><a  href="<?php echo HOME;?>index.php?module=manage&act=manga&opt=common&type=fansub">Nhóm Dịch</a></li>
                              <li><a  href="<?php echo HOME;?>index.php?module=manage&act=manga&opt=common&type=fansub_fk">Nhóm Dịch - Manga</a></li>
                               <li><a  href="<?php echo HOME;?>index.php?module=manage&act=manga&opt=common&type=slider">Slider</a></li>
                               <?php }?>
		
						</ul>
					</li>
                    
                    
                       <li class="dropdown"><a href="#" class="dropdown-toggle"	data-toggle="dropdown">Truyện Chữ
							<b class="caret"></b> </a>
						<ul class="dropdown-menu">
                          	<li><a	href="<?php echo HOME ?>index.php?module=manage&act=truyen&opt=common&type=truyen">Quản Lý Truyện</a>	</li>
                            <li><a	href="<?php echo HOME ?>index.php?module=manage&act=truyen&opt=upload">Upload Chapter</a>	</li>
                            <?php if($_SESSION['user']['level']==1){?>
                             
							<li><a	href="<?php echo HOME ?>index.php?module=manage&act=truyen&opt=common&type=chuong">Quản Lý Chapter</a>	</li>
                            <li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=theloai"> Thể Loại</a></li>
                            <li><a href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=theloai_tag"> Thể Loại - Tags</a></li>
							<li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=truyen_theloai">Thể Loại - Truyện</a></li>
                            <li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=tacgia">Tác Gỉa</a></li>
                            <li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=tacgia_fk">Tác Gỉa - Truyện</a></li>
                             <li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=chuong_link">Chương Link</a></li>
                              <li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=tag">Tag</a></li>
                                <li><a  href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=tag_fk">Tag FK</a></li>
                           
                               <?php }?>
		
						</ul>
					</li>
                        
                          <li><a href="<?php echo HOME; ?>index.php?module=manage&act=blog&opt=post">Blog</a>	</li>
                          <li><a href="<?php echo HOME; ?>index.php?module=manage&act=blog&opt=video">Video</a>	</li>
                          <li class="dropdown"><a href="#" class="dropdown-toggle"	data-toggle="dropdown">Theo Dõi
							<b class="caret"></b> </a>
						<ul class="dropdown-menu">
						  	<li><a	href="<?php echo HOME ?>user/history/manga">Truyện Tranh</a>	</li>
                            	<li><a	href="<?php echo HOME;?>index.php?module=manage&act=truyen&opt=common&type=history">Truyện Chữ</a>	</li>
						
						</ul>
					</li>
						
                         <li><a href="http://up.truyencuatui.info">Upload Ảnh</a>	</li>
                           <li class="dropdown"><a href="#" class="dropdown-toggle"	data-toggle="dropdown">Hướng Dẫn
							<b class="caret"></b> </a>
						<ul class="dropdown-menu">
							<li><a	href="<?php echo HOME ?>blog/14/Dang-Ky-Upload-Truyen-Tai-TCT-va-Manga24h.html">Đăng Ký Upload</a>	</li>
                          	<li><a	href="<?php echo HOME ?>blog/18/Huong-Dan-Upload-Manga-tai-TCT.html">Thêm Manga</a>	</li>
							
         
                        
                            
						</ul>
					</li>
                  
			</ul>
			<?php echo common_render_desktop_nav_right(); ?>
	</div>
		<!-- /.navbar-collapse -->
		</nav>
	<!-- end: Header -->
    <?php if($_GET['module']=='manage' && $_GET['act']=='home'){?>
    
    	
            <?php }else{?>
            <div class="container box"  style="width:98%">
		<div class="row">
		<!-- start: Main Menu -->
	
			<!-- start: Content -->
			<div id="content" class="col-lg-12 col-sm-12">
			<?php }?>